# 奇偶数
prompt = "输入数字，我告诉你奇偶"
prompt += "\n 输入”结束游戏“，将退出程序"
exit = "结束游戏"
content = ""
while content != exit:
    content = input(prompt)
    if content.isdigit():
        number = int(content)
        if number % 2 == 0:
            print("偶数")
        else:
            print("奇数")
    elif content != exit:
        print("输入错误，请重新输入")